<?php
/**
 * 服务层的基类
 * @author chenzy
 */
class BaseService{
    public $jiedai_db_name = ''; //借贷库前缀
    
    public function __construct(){
        $this->jiedai_db_name = C('JD_DB');
    }
    
    /**
     * 获取服务
     * @param string $service_name 服务名
     * @return 服务对像
     */
    protected function getService($service_name = ''){
        return Service($service_name);
    }
}